package cn.webrx;

public class StringBuilderDemo {
    public static void main(String[] args) {


        //构造方法
        StringBuilder s1 = new StringBuilder();
        s1.append("aa");
        StringBuilder s2 = new StringBuilder(6);
        s2.append("bb");
        StringBuilder s3 = new StringBuilder("hello");
        s3.append("cc");
        s3.append("java");

        //helloccjava
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
    }
}
